<?php

use think\Env;

$host = Env::get('host.domain');
return [
    'huawei' => [ // 华为配置
        // 'AppID' => 109375801,
        // 'AppSecret' => '1ed3c42f94783be94429ab11cd8548146d15b89bb380d691fa736187483cdbf0',
        // 'ver' => '1.0', //用来解决大版本升级的兼容问题
        // 'notify_url' => $host . '/zyhsapi/v1/push/huawei',
    ],
    'vivo' => [ // vivo 配置
        // 'AppID' => 105687399,
        // 'AppKey' => '70f6be4addf96cc920992d4ef3a9dac4',
        // 'AppSecret' => '95436831-42d0-4e5a-8c3b-bdffed0bc718',
        // 'notify_url' => $host . '/zyhsapi/v1/push/vivo',
    ],
    'xiaomi' => [ // 小米配置
        // 'AppID' => '2882303761517730776',
        // 'AppKey' => '5801773064776',
        // 'AppSecret' => 'Ll8yTj6G0Upav5cIdFhIYw==',
        // 'packageName' => 'com.constellation.goddess'
    ],
    'oppo' => [ // oppo配置
        // 'AppKey' => 'b59a60debc89417587c2e270442f6ef1',
        // 'AppSecret' => '189ed7ccd3694934aeb3c008ee17cc7a',
        // 'MasterSecret' => '3015854d36fe4562851dcd3cfa83a846',
        // 'channelId' => 'zhunle_good',
        // 'notify_url' => $host . '/zyhsapi/v1/push/oppo',
    ],
    'apns' => [ //ios APNS push
        'app_bundle_id' => 'com.zhunle.astrologer',
        'certificate_path' => 'server_certificates_bundle_sandbox_astr_app.pem',
        'certificate_secret' => '',
        //是否是线上
        'apns_production' => Env::get('host.name') === 'online',
        //设置通过多路连接发送的并发请求数。默认值:20
        'concurrent_requests' => 20,
        //设置与APNS服务器的最大并发连接数。默认值:1
        'max_concurrent_connections' => 1,
    ]
];
